
<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" name="viewport" />
    <meta http-equiv="content-script-type" content="text/javascript">
    <meta name="format-detection" content="telephone=no" />
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
            <link rel="shortcut icon" href="/favicon.ico">
            <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="0" />
    <title>订单详情</title>
    <link rel="stylesheet"href="statics/mobile/css/style.css?v=2017061659333656423412">
    <link rel="stylesheet"href="statics/mobile/css/SpsBtn.css?v=2017061659333656423412">
	<link rel="stylesheet"href="statics/mobile/css/Order/detail.css?v=2017061659333656423412">
    
    <link rel="stylesheet"href="statics/mobile/css/Order/orderlist.css?v=2017061659333656423412">
	<link rel="stylesheet"href="statics/mobile/plugins/swiper/swiper.min.css"/>
    <style>
        body{
            -webkit-user-select: text;
        }
    </style>

    <script type="text/javascript">
        var site_root='<?php echo API_STORE;?>';
    </script>

</head>

<body style="">


<div class="membersbox pad50">

	<div class="swiper-container">
		<div class="swiper-wrapper">
		  <?php foreach($list as $key=>$info){?>
		  <div class="swiper-slide" data-id="<?php echo $info['id'];?>" data-status="<?php echo $info['order_status'];?>">
			<div class="orderDetailtit clearfix">
				<div class="info-item fl">
					<p>
						<span>订单：</span>
						<span class="j-order_no"><?php echo $info['order_sn'];?>(<strong style="color:#ff0000;"><?php echo $GLOBALS['order_status'][$info['order_status']];?></strong>)</span>
					</p>
					<p>
					  <span>时间：</span><span class="j-create_time"><?php echo $info['updatetime'];?></span>
					</p>
				</div>
			</div>
			<div class="orderDetail">
				<ul class="goods">
				<?php foreach($info['goods'] as $k=>$v){?>
					<li>
						<a href="<?php echo $v['goods_id'];?>" class="clearfix">
							<div class="goods-img fl">
							<img src="<?php echo $v['goods_thumb'];?>" alt="<?php echo $v['goods_name'];?>">
							</div>
							<div class="goods-info">
								<p class="title"><?php echo $v['goods_name'];?></p>
								<p class="sku">
									<span>数量：&times;<?php echo $v['num'];?></span>
									<span> <?php echo $v['sku_name'];?></span><br/><br/>
									<span class="price">&yen;<?php echo $v['current_price'];?></span>
								</p>
								<input type="hidden" value="" class="item_miao"/>
									<input type="hidden" value="" class="item_limit_discount"/>
							</div>
						</a>
					</li>
				<?php }?>
				</ul>
				<ul class="money address">
					<li>收货信息：</li>
					<li class="clearfix" >
						<span class="fl"><?php echo $info['receiver_name'];?></span>
						<span class="fr"><?php echo $info['receiver_mobile'];?></span>
					</li>
					<li><?php echo $info['address'];?></li>
					<li>收货时间：<?php echo $info['receiver_time'];?></li>
				</ul>
				<?php if($info['express_id']>0){?>
				<ul class="money address">
					<li>发货信息：</li>
					<li class="clearfix" >
						<span class="fl"><?php echo $info['express_name'];?></span>
						<span class="fr"><?php echo $info['express_no'];?></span>
					</li>
					<li>发货时间：<?php echo $info['express_time'];?></li>
				</ul>
				<ul class="logistics">
					<li class="wuliu"><div class="wlt"><p>暂无物流信息</p><p><?php echo $info['express_time'];?></p></div></li>
				</ul>
				<?php }?>
				<!-- 虚拟帐号信息 -->
				<ul class="money">

					<li class="clearfix">
						<span class="fl">商品总价</span>
						<span class="fr colorRed">&yen;<?php echo $info['goods_price'];?></span>
					</li>
				   <li class="clearfix">
						<span class="fl">运费：</span>
						<span class="fr colorRed">&yen;<?php echo $info['post_price'];?></span>
					</li>
					
					<li class="clearfix">
						<span class="fl">优惠：</span>
						<span class="fr colorRed">&yen;<?php echo $info['coupon_price'];?></span>
					</li>
					<li class="clearfix ">
						<span class="fl">应付款(含运费)：</span>
						<span class="fr colorRed j-payment">&yen;<?php echo $info['payable'];?></span>
					</li>
					<?php if($info['pay_status']==1){?>
					<li class="clearfix ">
						<span class="fl">实付款(<?php echo $GLOBALS['pay_status'][$info['pay_status']];?>)：</span>
						<span class="fr colorRed">&yen;<?php echo $info['paid'];?></span>
					</li>
					<?php }?>
				</ul>

				<section class="actions">
					<?php if($info['order_status']==0){?>
					  <a href="javascript:;"  class="mbtn btn-danger btn-big" id="J_pay" data-order="<?php echo $info['id'];?>" data-wx="0" data-allipay="1" data-alipay="1" data-cod="0" data-type="1" data-ptype="">付款</a>
					<?php }?>
				  <?php if($info['order_status']==2){?>
					<a href="javascript:;"  class="mbtn btn-danger btn-big" id="j-confirmOrder"  data-id="<?php echo $info['id'];?>">确认收货</a>
				  <?php }?>
				</section>
			</div>
		  </div>
		</div>
	</div>
    
	
	
	 <?php }?>

    <!-- 输入支付密码弹窗 -->
    <div class="paypopbg"></div>
    <div class="paypop">
        <div class="paytit">请输入支付密码：</div>
        <div class="paypsd"><input type="password" id="pay_password" value=""></div>
        <div class="paybtns clearfix">
            <a href="javascript:;" class="j-payok fl">确定</a>
            <a href="javascript:;" class="j-paycancel fr">取消</a>
        </div>
    </div>

    <?php include VIEWS_PATH."bottom.php";?>
</div>


<section class="loading" id="j-loading"></section>


<script type="text/j-template" id="tpl_logistics_infor" >
    <% for(var key=0; key<data.result.list.length; key++){ %>
        <li class="wuliu">
            <div class="wlt">
                <p><%= data.result.list[key].status %></p>
                <p><%= data.result.list[key].time %></p>
            </div>
        </li>
    <% } %>

</script>


<?php include VIEWS_PATH."footer.php";?>


<script>
    var is_alipay = 1, is_wx_pay = 0, is_cod=0,is_bank=0,is_paypal=0,is_beibao=0,is_offline=0;
	var Fenbot_sendDefaultApiInfo=false;//不传输默认的用户数据到微聊
	var buytype='<?php echo $buy_type;?>';
</script>
<script src="statics/mobile/js/dist/Order/detail.js?v=20170610"></script>
<script>
	if(buytype=='cart'){
		window.localStorage.removeItem('mycart'); 
	}
	$(document).on("touchstart", ".pay_item", function() {
		$(".pay_item").removeClass('pay_active');
		$(this).addClass('pay_active');
	});
</script>
</body>
</html>
<!-- 20170105 -->
